<!doctype html>

<html>

  <head>
    <meta charset="utf-8">
    <title>WASM test</title>
  </head>

  <body>
    <script>
      const worker = new Worker("wasm_worker.js");

      WebAssembly.compileStreaming(fetch("simple.wasm"))
      .then(module => {
        worker.postMessage(module);
      });
    </script>
  </body>

</html>
